package com.scalar.forecast.salesForecastEntry;

/**
 * User: Sujan<br>
 * Date: Jul 15, 2005<br>
 * Time: 3:52:36 PM<br>
 * <br>
 * This calss is used to store the subordinate sales person row data list.
 */
public class ForecastData
{
    int salesPersonId;
    String salesPersonName;
    AutoGrowingLinkedList rowDataList   = null;
    AutoGrowingLinkedList runningTotal  = null;
    boolean collapsed; //USED WHETHER THE DATA SHOWN IN COLLAPSED OR EXPANDED

    public ForecastData()
    {
        salesPersonId   = -1;
        salesPersonName = null;
        rowDataList     = new AutoGrowingLinkedList( RowData.class );
        runningTotal    = new AutoGrowingLinkedList( NewLabelValueBean.class );
        collapsed       = true;
    }

    public int getSalesPersonId()
    {
        return salesPersonId;
    }

    public void setSalesPersonId(int salesPersonId)
    {
        this.salesPersonId = salesPersonId;
    }

    public String getSalesPersonName()
    {
        return salesPersonName;
    }

    public void setSalesPersonName(String salesPersonName)
    {
        this.salesPersonName = salesPersonName;
    }

    public AutoGrowingLinkedList getRowDataList()
    {
        return rowDataList;
    }

    public void setRowDataList(AutoGrowingLinkedList rowDataList)
    {
        this.rowDataList = rowDataList;
    }

    public AutoGrowingLinkedList getRunningTotal()
    {
        return runningTotal;
    }

    public void setRunningTotal(AutoGrowingLinkedList runningTotal)
    {
        this.runningTotal = runningTotal;
    }

    public boolean isCollapsed()
    {
        return collapsed;
    }

    public void setCollapsed(boolean collapsed)
    {
        this.collapsed = collapsed;
    }
}
